<table width="100%"  border="0" cellspacing="0" cellpadding="0" style="border-right: #b7c1c9 1px solid; border-bottom:#b7c1c9 1px solid; border-left:#b7c1c9 1px solid;">
    <tr>
        <td align="center" bgcolor="#b5b5b5">
            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr align="center" valign="middle">
                    <?php			
					
					$travel_pic = array();
						$result = getAllPhotoTravel();
							
						while($rs=mysql_fetch_object($result)){
							$src = $rs->src;
							$travelid = $rs->fid;
							$travel_pic[$travelid] = $rs->src_small;
						}
			$sql = "select * from pcd_travel order by hot desc limit 0,6;";		
			$result = mysql_query($sql);
			$numofarea = 0;
			$numoftotal = mysql_num_rows($result);
			while($rs=mysql_fetch_object($result)){
				$travelid = $rs->id;
				$travelname = $rs->title;
				?>
                    <td height="75" width="83" onMouseOver="this.style.backgroundColor='#EFEFEF';" onMouseOut="this.style.backgroundColor='';"><a
					href="add_click.php?module=travel&page=page_travel_detail.php&id=<?php echo $travelid;?>" title="<?php echo $travelname;?>">
                        <?php if($travel_pic[$travelid]==''){?>
                        <img
					src="images/nopic.jpg" width="60" height="60" border="0" title="<?php echo $travelname;?>" alt="<?php echo $travelname;?>">
                        <?php }else{?>
                        <img
					src="<?php echo $travel_pic[$travelid];?>" width="60" height="60" border="0" title="<?php echo $travelname;?>" alt="<?php echo $travelname;?>">
                        <?php }?>
                        </a></td>
                    <?php
					$numofarea++;
					if($numofarea%3==0){
						//if(($numofarea%3==0)&&($numoftotal%3!=0)){
						echo "</tr><tr align=\"center\" valign=\"middle\">";
					}
			} if($numoftotal<3){ for($i=0;$i<3-$numoftotal;$i++){?>
                    <td height="75" width="83">&nbsp;</td>
                    <?php }}?>
                </tr>
            </table>
        </td>
    </tr>
</table>
